package cn.tedu.duotai;

public class PetShop {
    //出售宠物
//    public void sell(Dog dog){
//        System.out.println(dog.name+","+dog.age);
//        System.out.println("狗"+6000+"元");
//    }
//    public void sell(Cat cat){
//        System.out.println(cat.name+","+cat.age);
//        System.out.println("猫"+600+"元");
//    }
    public void sell(Pet pet){
        System.out.println(pet.name+","+pet.age);
    }
}
